﻿@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    @Styles.Render("~/Content/base")
    @RenderSection("ViewStyles", false)
    <script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>
    @Scripts.Render("~/Scripts/base")
    @RenderSection("ViewScripts", false)
</head>
<body>
    <nav class="navbar navbar-fixed-top navbar-inverse">
        <div class="navbar-inner">
            <div class="container-fluid">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span
                    class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </a><a class="brand" href="/">Gestion Salud Ocupacional</a>
                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="@(ViewBag.Active == "Inicio" ? "active" : "")">@Html.ActionLink("Inicio", "Index", "Home")</li>
                        @if (User.Identity.IsAuthenticated)
                        {
                            <li class="@(ViewBag.Active == "Registro" ? "active" : "")">@Html.ActionLink("Registro", "Index", "Registro")</li>
                            <li class="@(ViewBag.Active == "Citas" ? "active" : "")">@Html.ActionLink("Citas", "Index", "Citas")</li>
                            <li class="@(ViewBag.Active == "Examen" ? "active" : "")">@Html.ActionLink("Examen", "Index", "Examen")</li>
                            <li class="@(ViewBag.Active == "Reportes" ? "active" : "")">@Html.ActionLink("Reportes", "Index", "Reporte")</li>
                            if (User.IsInRole("SecurityGuard"))
                            {
                                 <li><a href="SecurityGuard">Security Guard</a></li>
                            }
                        }
                    </ul>
                </div>
                <div id="loading">
                    <div id="overlayedFrameFooter">
                        <img src="../../Content/images/ajax-loader.gif" />
                        Cargando...
                    </div>
                </div>
                @Html.Partial("_LogOnPartial")
            </div>
        </div>
    </nav>
    <div class="container-fluid">
        @RenderBody()
        <hr>
        <footer>
            <p>
                &copy;Company 2012</p>
        </footer>
    </div>
</body>
</html>
@*<div class="navbar navbar-inverse ">
      <div class="navbar-inner navbar-fixed-top">
        <div class="container">
            <img src="../../Content/images/ajax-loader.gif" />
            Cargarndo...
        </div>
      </div>
    </div>*@ 